package znyl.common.ai;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


// 确保前缀与配置文件一致（如 "baidu.ai"）
@Data
@ConfigurationProperties(prefix = "baidu.ai")
@Component
public class BaiduAIProperties {
    // 已有的API Key
    private String apiKey;
    // 新增：百度IAM认证必须的Secret Key
    private String secretKey;
    // 已有的模型名
    private String qianfanModel;

    // 生成 Getter + Setter（必须，否则配置无法注入）
    public String getApiKey() {
        return apiKey;
    }

    public void setApiKey(String apiKey) {
        this.apiKey = apiKey;
    }

    public String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

    public String getQianfanModel() {
        return qianfanModel;
    }

    public void setQianfanModel(String qianfanModel) {
        this.qianfanModel = qianfanModel;
    }
}